
[%
metamodel http://www.eclipse.org/uml2/2.0.0/UML

import org.acceleo.modules.uml2.services.Uml2Services
import org.acceleo.modules.uml2.services.StringServices
%]

[%script type="Class" name="fullFilePath"%]
[%if (hasStereotype("Entity")){%]
/[%package.name%]/[%name%]Form.jsp
[%}%]

[%script type="Class" name="generate" file="[%fullFilePath%]"%]
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="via" uri="http://taam.org/taglib" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>[%ownedComment.body%]</title>
	</head>
	<body>
	<%@page import="org.acceleo.sample.jdbc.Jdbc[%name%]Dao"%>

<a href="<%= application.getContextPath() %>/index.html">Index</a>
<a href="[%name%]View.jsp">Liste des objets [%name%]</a> - 
<br/><br/>
<br/>This is an example of use of the tag "EntityFormTag" generated by org.taam.taglib.formTag.mt which displays a form corresponding to an entity object of a model.

<br/>
<br/>
Here the code used in this JSP:

<p>
<textarea cols="100" rows="3" readonly="readonly">
&lt;%@ taglib prefix="via" uri="http://taam.org/taglib" %&gt;
&lt;via:EntityFormTag entityName="[%name%]"&gt;&lt;/via:EntityFormTag&gt;
</textarea>
</p>
<br/><br/>
You can copy and customize it for use in your web application.


Here the result of this code :

<h2>Formulaire d'ajout d'un objet de type [%name%]:</h2>

<via:EntityFormTag entityName="[%name%]"></via:EntityFormTag>


<br/><br/>
<hr/>
This page is generated by the acceleo script org.taam.JSPs.jspForm.mt.

</body>